import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import b64 from './views/b64.vue'
import bmi from './views/BMI.vue'
import weather from './views/weather'
import ysjs from './views/js压缩'
import student from './views/student'
Vue.use(Router)

export default new Router({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    },
    {
      path: '/b64',
      name: 'b64',
      component:b64
    },
    {
      path: '/bmi',
      name: 'bmi',
      component:bmi
    },
    {
      path: '/weather',
      name: 'weather',
      component:weather
    },
    {
      path: '/ysjs',
      name: 'ysjs',
      component:ysjs
    },
    {
      path: '/student',
      name: 'student',
      component:student
    },
  ]
})
